﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<Problem2D>>" %>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	<%= (string)GetLocalResourceObject("Page.Title") %>
</asp:Content>

<asp:Content ID="Content1"  ContentPlaceHolderID="PageHeader" runat="server">
    <%= (string)GetLocalResourceObject("Page.Title") %>
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    
    <table>
    <tr>
        <th><%= (string)GetLocalResourceObject("ProblemType") %></th>
        <th><%= (string)GetLocalResourceObject("PointsCount") %></th>
        <th><%= (string)GetLocalResourceObject("x1") %></th>
        <th><%= (string)GetLocalResourceObject("x2") %></th>
        <th><%= (string)GetLocalResourceObject("y1") %></th>
        <th><%= (string)GetLocalResourceObject("y2") %></th>
        <th><%= (string)GetLocalResourceObject("ValueOnBoundary")%></th>
        <th><%= (string)GetLocalResourceObject("H") %></th>
        <th><%= (string)GetLocalResourceObject("Epsilon")%></th>
        <th><%= (string)GetLocalResourceObject("Alpha")%></th>
        <th><%= (string)GetLocalResourceObject("ExecutionTime")%></th>
        <th><%= (string)GetLocalResourceObject("IterationsCount")%></th>
        <th></th>
    </tr>
    <% foreach (var problem in Model) { %>
        <tr>
            <td>
                <%= problem.Type == ProblemType.Simple ? (string)GetLocalResourceObject("ProblemType.Simple") : "" %>
                <%= problem.Type == ProblemType.TypeThree ? (string)GetLocalResourceObject("ProblemType.Three") : "" %>
            </td>
            <td><%= problem.InputParameters.N %></td>
            <td><%= problem.InputParameters.X1 %></td>
            <td><%= problem.InputParameters.X2 %></td>
            <td><%= problem.InputParameters.Y1 %></td>
            <td><%= problem.InputParameters.Y2 %></td>
            <td><%= problem.InputParameters.G %></td>
            <td><%= problem.InputParameters.H %></td>
            <td><%= problem.InputParameters.Epsilon %></td>
            <td><%= problem.InputParameters.Alpha %></td>
            <td><%= problem.Solution.ExecutionTime %></td>
            <td><%= problem.Solution.IterationsCount %></td>
            <td><%= Html.ActionLink((string)GetGlobalResourceObject("Action", "Details"), "2D/Display", "Solution", new { id = problem.Id }, new { })%></td>
        </tr>
    <% } %>
    </table>
</asp:Content>


